package com.songlanyun.modules.marketing.firstorder.model.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.songlanyun.common.drive.RootEntity;
import com.songlanyun.common.drive.ValueObject;
import lombok.Data;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 首单活动
 *
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2020-11-23 16:29:49
 */
@Data
public class FirstOrderActivityDTO implements ValueObject {


    /**
     * 是否启用
     * 0：禁用
     * 1：启用
     */
    @NotNull(message = "启用状态不能为空")
    private Boolean isUse;
    /**
     * 满
     */

    @DecimalMax(value = "9999999.99", message = "满多少元最大是9999999.99")
    private BigDecimal full = BigDecimal.ZERO;
    /**
     * 减
     */

    @DecimalMax(value = "9999999.99", message = "减多少元最大是9999999.99")
    private BigDecimal reduction= BigDecimal.ZERO;
    /**
     * 商家id
     */
    private Long shopId;


}
